package com.rtx.edi.platform.jobextend.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.edi.platform.jobextend.bean.bo.PlJobBo;
import com.rtx.edi.platform.jobextend.bean.dto.PlJobDTO;
import com.rtx.edi.platform.jobextend.bean.po.PlJobMapping;

public interface PlJobMappingService extends IService<PlJobMapping>{

	/**
	 * 获取字段配置
	 * @param jobId
	 */
	Map<String,Object>  getFieldMappingConfig(String datasourcekey,PlJobBo bo) throws Exception;
	
	/**
	 * 获取接口平台配置
	 * @param jobId
	 * @return
	 */
	PlJobBo getJobConfig(String datasourcekey,Long jobId);
	
	/**
	 *	执行sql获取map
	 * @param datasourceky
	 * @param jobId
	 * @return
	 */
	Map<String,List<Map<String,Object>>> executeSqlByJobId(String datasourceky,Long jobId);
	
	/**
	 * 添加pljobmapping
	 * @param dto
	 */
	void addPlJObMapping(PlJobDTO dto);
}
